home *** CD-ROM | disk | FTP | other *** search
- Path: esdhof.esd.ornl.gov!forrest
- From: forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman)
- Newsgroups: comp.lang.c,comp.os.msdos.programmer,comp.sys.ibm.pc.hardware.video,comp.sys.ibm.pc.hardware.misc,comp.sys.ibm.pc.misc
- Subject: Re: malloc'ing 1.5MB of memory
- Date: 11 Jan 1996 14:47:06 GMT
- Organization: ORNL Environmental Sciences Division
- Message-ID: <4d37ta$4d2@stc06.ctd.ornl.gov>
- References: <4culvu$612@stc06.ctd.ornl.gov> <DL0HqJ.7H4@rug.nl>
- Reply-To: forrest@esdhof.esd.ornl.gov
- NNTP-Posting-Host: esdhof.esd.ornl.gov
- To: Herman Dullink <csg669@wing.rug.nl>
-
- In article <DL0HqJ.7H4@rug.nl>, Herman Dullink <csg669@wing.rug.nl> writes:
- |> forrest@esdhof.esd.ornl.gov (Forrest M. Hoffman) wrote:
- |> >Can anyone tell me how to grab a 1.5 MB chunk of PC memory? I've got a
- |> >VideoBlaster card and some C code they gave me. But I want to use the
- |> >full screen (800x600) at 24 bit color. This means I have to have this
- |> >much space to have the routine dump the data into. The machine I'm
- |> >using is a 486 with 16MB of memory. This must be a DOS limitation?
- |> >I'm using MS C 6.0 and calling halloc();
- |> It's probably the limitation of MS C's halloc().
- |>
- |> >Any suggestions?
- |> Try to use the XMS interface (Himem) and disable MS C's heap. With the XMS
- |> interface you're able to allocate up to 15MB.
- |>
- |> Herman
- |>
-
- Herman:
-
- Thanks for the suggestion. This sounds like what I need to do, but how
- do I use XMS? I cannot find any reference to it. Is it another
- library? Do I get it from Chairman Gates?
-
- One other thing: I still need networking and things to work correctly.
- I'm trying to write directly onto an NFS-mounted disk from this program.
- I'm using FTP's OnNet TCP/IP stack.
-
- Also, how do I disable MS C's heap after finding out about XMS?
-
- Thanks!!!
-
- Forrest
- -----------------------------------------------------------------------------
- Forrest Hoffman forrest@esd.ornl.gov
- Environmental Sciences Division http://www.esd.ornl.gov/~forrest
- Oak Ridge National Laboratory (423) 576-7680
- MS 6036, Building 1505, Room 216 (423) 576-8543 fax
- P.O. Box 2008 36 1' 35" N 84 11' 55" W
- Oak Ridge TN 37831-6036
- -----------------------------------------------------------------------------
-